CreateIndex

An arexx script to create HTML picture index using ImageStudio

Release v3.1

Contents



What does it do?

Anyone with more than a handful of pictures with know that even with the most verbose filenames it can still be hard to track down the particular image which you seek. So people have written various proggys to catalogue your pics. The simplest of these being those that create thumbnails (small versions) of your pics and generate a HTML file to allow them to be viewed in favouite browser. You've guessed it this is what CreateIndex does!



How do you use it?

Installation

Copy the files from the Rexx directory to your ImageStufdio/Rexx directory. Stick this file where you like it. That's all.

Extra Scripts

Usage

Initially : Open the scripts window in ImageStudio and double click on CreateIndex. Shift select all files you want to be in index or just hit 'All'. Wait with baited breath. A file called index.html will be generated in the directory as well as the thumbnails. If you have selected more than row*columns images (default 10*5=50) additional files called index2.html etc. will be created.

Updating : If you have added more files to a directory simply repeat the previous process the file pattern will be set not to show the index files (other html files will appear) or any thumbnails.

Advanced : All the parameters are constants defined in the script itself this means if you want to change things you will need to edit the script yourself Shreaks of horror!!!. Don't worry its dead easily if you can type and breath (preferably at the same time). All the values that you may wish to change are near the top of the script:


/* PROGRAM CONSTANTS - change these values to suit */

HTMLFile='Index.html'   /* What to call the html file, Oh Yes */
SquareSize=100	       	/* Size of square into which to fit pic */
TNFormat='PNG'          /* Thumbnail file format */
TNArgs='INTERLACE=ADAM7'/* Thumbnail file format arguments */
TNExten='png'           /* Thumnail file extension */
TNPrefix='TN'           /* Thumbnail prefix */
TableColumns=5	      	/* No. of pics per row */
TableRows=10            /* No. of rows in table in each index file */
TableBorder=1           /* Size of table borders, in pixels */

FilePattern='~('HTMLFile'|'TNPrefix'#?)' /* only change if you understand arexx */

Useful Tips

Minimise the image window before batch processing a lot of images as it will make the redraw time shorter and decrease the time for the batch process to run



To do

All done! (Hopefully)



History

V1.0 2 Nov 97 by James Perrin

V2.0 19 Nov 97 added ability to update an index if new images have been added to the directory

V2.1 24 May 98 added skipping of files unable to load eg progressive jpegs

V2.1D 25 May 98 added thumbnail dimension gernation, split development into two scripts

V3.0 25 June 98 added max table rows => multiple HTML file generation

V3.1 20 Jan 99 add constant for file args. Second public release



Who wrote this?

James S Perrin j.perrin@mcc.ac.uk

This archive is freely distributable as long as the archive remains unchanged. Copyright remains with the author. I'd appreciate an email if anyone likes it.